/* 控制台通用样式 */
.dashboard-page {
    background: var(--gray-100);
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
#sidebar {
    width: 240px;
    background: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo i {
    font-size: 1.5rem;
    color: #6366f1;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 600;
}

/* 导航链接 */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links .active a {
    background: #6366f1;
    color: white;
}

.nav-links i {
    font-size: 1.25rem;
}

/* 主要内容区域 */
.main-content {
    margin-left: 240px;
    padding: 2rem;
    width: 100%;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 数据卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 统计卡片样式 */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.stat-info p {
    margin: 0;
    color: #6b7280;
}

/* 图表区域 */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 最近面试表格样式 */
.recent-interviews {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.btn-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* 表格样式优化 */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    padding: 1rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table td {
    padding: 1rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

/* 得分样式 */
.score {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 200px;
}

.score-value {
    min-width: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.score-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    position: relative;
}

.score-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #6366f1;
    border-radius: 3px;
    width: var(--score-width);
}

/* 状态标签 */
.status {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* 操作按钮 */
.btn-outline-primary {
    color: #6366f1;
    border: 1px solid #6366f1;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #6366f1;
    color: white;
}

/* 表格响应式处理 */
@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
        overflow-x: auto;
    }
    
    .table {
        min-width: 800px;
    }
}
  